package com.m2bshop.shop.dao;


import com.m2bshop.shop.pojo.Transaction;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface TransactionMapper {
    List<Transaction> getAll(@Param("userid") int id);//获取用户全部交易信息
    void Insert(Transaction transaction);//增加交易信息
    List<Transaction> getOne(int userid);//搜索交易信息
    List<Transaction> getByAdmin();//管理员查询全部信息
}
